.class Lcom/htc/android/footprints/activity/FootprintDetailEditActivity$13;
.super Ljava/lang/Object;
.source "FootprintDetailEditActivity.java"

# interfaces
.implements Landroid/content/DialogInterface$OnClickListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->onCreateDialog(I)Landroid/app/Dialog;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;


# direct methods
.method constructor <init>(Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;)V
    .locals 0
    .parameter

    .prologue
    .line 1236
    iput-object p1, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity$13;->this$0:Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onClick(Landroid/content/DialogInterface;I)V
    .locals 5
    .parameter "dialog"
    .parameter "which"

    .prologue
    const/4 v4, 0x1

    .line 1237
    iget-object v2, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity$13;->this$0:Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;

    #setter for: Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->isDelete:Z
    invoke-static {v2, v4}, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->access$2502(Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;Z)Z

    .line 1238
    invoke-interface {p1}, Landroid/content/DialogInterface;->dismiss()V

    .line 1239
    iget-object v2, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity$13;->this$0:Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;

    iget-object v2, v2, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mService:Lcom/htc/android/footprints/ILocationAgentService;

    if-eqz v2, :cond_0

    .line 1241
    :try_start_0
    iget-object v2, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity$13;->this$0:Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;

    iget-object v2, v2, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mService:Lcom/htc/android/footprints/ILocationAgentService;

    invoke-interface {v2}, Lcom/htc/android/footprints/ILocationAgentService;->stopTrackingWithoutNotify()V
    :try_end_0
    .catch Landroid/os/RemoteException; {:try_start_0 .. :try_end_0} :catch_0

    .line 1246
    :cond_0
    :goto_0
    iget-object v2, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity$13;->this$0:Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;

    invoke-virtual {v2}, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->getApplicationContext()Landroid/content/Context;

    move-result-object v2

    iget-object v3, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity$13;->this$0:Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;

    #getter for: Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;
    invoke-static {v3}, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->access$100(Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;)Lcom/htc/android/footprints/vo/Footprint;

    move-result-object v3

    invoke-static {v2, v3}, Lcom/htc/android/footprints/utils/FootprintUtils;->deleteFootprint(Landroid/content/Context;Lcom/htc/android/footprints/vo/Footprint;)V

    .line 1247
    new-instance v1, Landroid/content/Intent;

    invoke-direct {v1}, Landroid/content/Intent;-><init>()V

    .line 1248
    .local v1, intent:Landroid/content/Intent;
    const-string v2, "EXTRA_DELETE_FROM_EDIT"

    invoke-virtual {v1, v2, v4}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Z)Landroid/content/Intent;

    .line 1249
    iget-object v2, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity$13;->this$0:Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;

    const/4 v3, -0x1

    invoke-virtual {v2, v3, v1}, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->setResult(ILandroid/content/Intent;)V

    .line 1250
    iget-object v2, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity$13;->this$0:Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;

    invoke-virtual {v2}, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->finish()V

    .line 1251
    return-void

    .line 1242
    .end local v1           #intent:Landroid/content/Intent;
    :catch_0
    move-exception v2

    move-object v0, v2

    .line 1243
    .local v0, e:Landroid/os/RemoteException;
    invoke-virtual {v0}, Landroid/os/RemoteException;->printStackTrace()V

    goto :goto_0
.end method
